Add newline (\n) to fatal or warning.
authoroliskoli <oliskoli>
Mon, 9 Apr 2007 18:43:26 +0000 (18:43 +0000)
committeroliskoli <oliskoli>
Mon, 9 Apr 2007 18:43:26 +0000 (18:43 +0000)
garmin_txt.c
pcx.c

index d1dc1eb795021458d7ece8193b05ab3afff62e12..ed2b30096709a310fe2bfe236c117bd6916c9eba 100644 (file)
@@ -1026,7 +1026,7 @@ parse_categories(const char *str)
                cin = lrtrim(cin);
                if (*cin != '\0') {
                        if (!garmin_fs_convert_category(cin, &val)) 
-                               warning(MYNAME ": Unable to convert category \"%s\" at line %d!", cin, current_line);
+                               warning(MYNAME ": Unable to convert category \"%s\" at line %d!\n", cin, current_line);
                        else
                                res = res | val;
                }
diff --git a/pcx.c b/pcx.c
index a3cfbefed0e1522a21bccb8d26578d48fc9620ff..5c479282f47532fbe4653513b4fe5cb4e1c4bf0a 100644 (file)
--- a/pcx.c
+++ b/pcx.c
@@ -217,7 +217,7 @@ data_read(void)
                                if (lathemi == 'S') lat = -lat;
                                if (lonhemi == 'W') lon = -lon;
                        } else if (n == 0) {
-                               fatal(MYNAME ":Unrecognized track line '%s'", 
+                               fatal(MYNAME ":Unrecognized track line '%s'\n", 
                                                ibuf);
                        }